import request from '../request'

// 个人信息相关接口
// 查询个人信息
export const getPersonalInfo = () => {
	return request.get('/business/resumePersonalInfo/list')
}

// 获取简略个人信息详情
export const getPersonalInfoDetail = (id) => {
	return request.get(`/business/resumePersonalInfo/${id}`)
}

// 获取详情个人信息详情
export const getPersonalAllDetail = (id) => {
	return request.get(`/business/resumePersonalInfo/getAllInfo/${id}`)
}
// 新增个人信息
export const addPersonalInfo = (params) => {
	return request.post('/business/resumePersonalInfo', params)
}

// 修改个人信息
export const updatePersonalInfo = (params) => {
	return request.put('/business/resumePersonalInfo', params)
}

// 删除个人信息
export const deletePersonalInfo = (ids) => {
	return request.delete(`/business/resumePersonalInfo/${ids}`)
}

// 上传头像
export const uploadAvatar = (file) => {
	return request.upload('/file/upload', {
		filePath: file,
		name: 'file'
	})
}